
{% extends 'activity/activity-layout.html.twig' %}
{% do script(['libs/ltc-sdk-client.js', cloud_sdk_url('uploader'), 'pptactivity/js/manage/index.js']) %}
{% block activity_step %}
  <div class="tab-pane js-course-tasks-pane active js-step2-view">
    <form class="form-horizontal" id="step2-form" data-media-id="{{ activity.mediaId|default(null) }}">
      <div class="form-group">
        <div class="col-sm-2 control-label">
          <label for="title" class="control-label-required">{{ 'course.plan_task.activity_manage.title_name'|trans }}</label>
        </div>
        <div class="col-sm-10">
          <input id="title" class="form-control" type="text" name="title" value="{{ activity.title|default('') }}" >
        </div>
      </div>
      <div class="form-group">
          <div class="col-sm-2 control-label">
            <label for="media" class="style control-label-required">PPT</label>
          </div>
          <div class="col-sm-10">
              {% include 'file-chooser/file-choose.html.twig' with {
                  courseId: activity.fromCourseId,
                  mediaType: 'ppt',
                  fileType: 'ppt',
                  file: activity.ext.file|default(null),
                  placeholder: 'PPT'
              } %}
              <div id="file-choose-type" class="hidden" data-type="ppt"></div>
          </div>
      </div>
    </form>
  </div>
{% endblock %}